package com.clkj.xiuzheng.pojo.shangcheng;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 * @date Wed May 15 13:57:32 CST 2024
 * */
@ApiModel( value ="t_xz_productCart" )
@Table( name ="t_xz_productCart" )
public class ProductCart  implements Serializable {

    @Id
   	@Column(name = "cart_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer cartId;

   	@Column(name = "product_id" )
	@ApiModelProperty( value="null")
	private Integer productId;

   	@Column(name = "format_id" )
	@ApiModelProperty( value="null")
	private Integer formatId;

   	@Column(name = "cart_num" )
	@ApiModelProperty( value="null")
	private Integer cartNum;

   	@Column(name = "cart_price" )
	@ApiModelProperty( value="null")
	private Double cartPrice;

   	@Column(name = "user_id" )
	@ApiModelProperty( value="null")
	private Integer userId;

    @Column(name = "factory_id" )
    @ApiModelProperty( value="null")
    private Integer factoryId;

   	@Transient
    private String productName;
    @Transient
   	private String productImage;
    @Transient
   	private String formatName;
    @Transient
   	private Double productPrice;
    @Transient
   	private Integer productScore;
    @Transient
   	private Integer productNum;
    @Transient
    private Double postNum;

  public Integer getCartId() {
    return cartId;
  }

  public void setCartId(Integer cartId) {
    this.cartId = cartId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public Integer getFormatId() {
    return formatId;
  }

  public void setFormatId(Integer formatId) {
    this.formatId = formatId;
  }



  public Double getCartPrice() {
    return cartPrice;
  }

  public void setCartPrice(Double cartPrice) {
    this.cartPrice = cartPrice;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public String getFormatName() {
        return formatName;
    }

    public void setFormatName(String formatName) {
        this.formatName = formatName;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public Integer getProductScore() {
        return productScore;
    }

    public void setProductScore(Integer productScore) {
        this.productScore = productScore;
    }

    public Integer getCartNum() {
        return cartNum;
    }

    public void setCartNum(Integer cartNum) {
        this.cartNum = cartNum;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public Double getPostNum() {
        return postNum;
    }

    public void setPostNum(Double postNum) {
        this.postNum = postNum;
    }
}
